package com.FQJ.stock.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@HeadRowHeight(value = 35) // 表头行高
@ContentRowHeight(value = 25) // 内容行高
@ColumnWidth(value = 50) // 列宽
public class User implements Serializable {
	@ExcelProperty(value = {"用户基本信息","用户名"},index = 0)
	private String username;
	@ExcelProperty(value = {"用户基本信息"," "},index =1)
	private Integer age;

	@ExcelProperty(value = {"用户基本信息",},index = 2)
	private String address;

	@ExcelProperty(value = {"用户基本信息"},index = 3)
	@DateTimeFormat("yyyy-MM-dd")
	private Date birthday;
}
